<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
// database host
$ip = $_SERVER['SERVER_ADDR'];
if($ip == '127.0.0.1') {//本地配置
    $db_host   = "localhost";
    $db_port   = '3306';
    // database name
    $db_database   = "art";
    // database username
    $db_user   = "root";
    // database password
    $db_pass   = "";
    //prefix
    $prefix    = "x_"; 
    $db_charset = 'utf-8';
} else {//线上配置
    $db_host   = "localhost";
    $db_port   = '3306';
    // database name
    $db_database   = "ftpuser518";
    // database username
    $db_user   = "ftpuser518";
    // database password
    $db_pass   = "ftpuser518111";
    //prefix
    $prefix    = "x_";
    $db_charset = 'utf-8';
}

